package com.webinsky.article.service;

import java.util.List;

import com.webinsky.article.domain.MisRelationship;
import com.webinsky.article.domain.MisRelationshipSync;
import com.webinsky.article.domain.MisRelationshipType;

public interface RelationshipManagement {
	/**
	 * @param misRelationship
	 */
	void create(MisRelationship misRelationship);
	/**
	 * @param bookMode
	 * @param type
	 * @return
	 */
	List<MisRelationship> getRelationshipBySiteIdAndType(int siteId, MisRelationshipType type);
	/**
	 * 根据cnid取得relationship
	 * @param cnIds
	 * @return
	 */
	List<MisRelationship> getRelationshipByCnIds(List<Integer> cnIds);
	/**
	 * 
	 * @param relationSync
	 */
	void syncRelationship(MisRelationshipSync relationSync);
}
